<div class="div_form" >
    <h1>Device details:</h1>
    <p><b>ID: </b><?=$row['iddevices']?></p>
    <p><b>Name: </b><?=$row['namedevice']?></p>
    <p><b>Device type: </b><?=$row['category_name']?></p>
    <p><b>Belong to: </b><?=$row['namecustomer']?></p>
    <p><b>Details: </b></p>
    <div  class="view_detail"><?=$row['details']?></div>
    
    <p><b>Part Number: </b><?=$row['partnumber']?></p>
    
    <p><b>Serial: </b><?=$row['serial']?></p>

    <p><b>Delivered date: </b><?=date_format(date_create($row['timestart']),'d-m-Y')?></p>
    <p><b>Provided by: </b><?=$row['providedby']?></p>
    <p><b>Warranty to date: </b><?=date_format(date_create($row['warrantyto']),'d-m-Y')?></p>
    <p><b>Time created: </b><?=date_format(date_create($row['time_create']),'d-m-Y H:i:s')?></p>
    <p><b>User id created: </b><?=$row['user_create']?></p>

    <p><b>Last update: </b><?=$row['time_update']?></p>
    <p><b>User id update: </b><?=$row['user_update']?></p>

</div>
<div class="div_form" >
        <h1>Related configurations:</h1><br>
        <?if(count($posts)):?>
        <?foreach ($posts as $p):?>
        <p><a href="index.php?m=manage_configuration&a=view&c_id=<?=$p['idconfigurations']?>"><?=$p['configname']?></a></p>
        <?endforeach?>
        <?endif?>
        
</div>